<template>
	<view class="conent">
		<ezplayer id="ezplayer" :accessToken="ezplayerForm.accessToken"
			:url="'rtmp://open.ys7.com/'+ezplayerForm.deviceSerial+'/'+ezplayerForm.channelNo+'/live'"
			bind:handleError="handleError" />
		<!-- plugins="talk,voice,capture,ptz,privacy,mirror" -->
	</view>
</template>

<script setup>
	import {
		ref,
		onMounted
	} from 'vue';
	import {
		onLoad
	} from "@dcloudio/uni-app";
	const ezplayerForm = ref({})
	// url="rtmp://open.ys7.com/K31197952/1/live"
	// plugins	String		功能项	取值：talk（对讲）、
	// voice（语音播报）、ptz（云台）、privacy（隐私遮蔽）、
	// mirror（镜像翻转）、capture（截图）、 注意：镜像翻转为中心翻转
	// const ezplayerForm = {
	// 	deviceSerial:hiveDetail.value.deviceSerial,
	// 	channelNo:hiveDetail.value.channelNo,
	// 	accessToken:hiveDetail.value.accessToken
	// }
	onLoad((options) => {
		console.log("123--", JSON.parse(options.ezplayerForm))
		ezplayerForm.value = JSON.parse(options.ezplayerForm)
	})
</script>

<style>

</style>